import Http from "@/http"

export function categoryApi() {
    return Http.get('statistics/category')
}

export function appCountApi(categoryId) {
    return Http.get('statistics/appCount/' + categoryId)
}

export function uniqueVisitorsApi(categoryId) {
    return Http.get('statistics/uniqueVisitors/' + categoryId)
}

export function visitTimesApi(categoryId) {
    return Http.get('statistics/visitTimes/' + categoryId)
}

export function categoryAppCountApi() {
    return Http.get('statistics/category/appCount')
}

export function rankVisitTimesByMonthApi(month) {
    return Http.get('statistics/rankVisitTimesByMonth?month=' + month)
}

export function rankVisitTimesByYearApi(year) {
    return Http.get('statistics/rankVisitTimesByYear?year=' + year)
}